#include "test.h"


void test1()
{
	bit::string s("1234");
	s.pushback('a');
	s.pushback('a');
	s.pushback('a');
	s.pushback('a');
	s.pushback('a');
	s.pushback('a');
	s.pushback('a');
	bit::string::iterator it = s.begin();
	while (it != s.end())
	{
		cout << *it << ' ';
		++it;
	}
	cout << endl;
}

void test2()
{
	bit::string s("1234");
	s += 'a';
	s += 'a';
	s += 'a';
	s += 'a';
	s += 'a';
	s += 'a';
	s += 'a';
	bit::string::iterator it = s.begin();
	while (it != s.end())
	{
		cout << *it << ' ';
		++it;
	}
	cout << endl;
}


void test3()
{
	bit::string s1("12345");
	bit::string s2("abcdef");
	s1 += s2;
	bit::string::iterator it = s1.begin();
	while (it != s1.end())
	{
		cout << *it << ' ';
		++it;
	}
	cout << endl;

}

void test4()
{
	bit::string s1("12345");
	// s1.reserve(10);
	/*s1.resize(20, 'a');*/

	//cout << s1 << endl;
	
	/*bit::string s1("");

	cin >> s1;
	cout << s1 << endl;*/

	//s1.insert(1, 'a');
	//s1.insert(1, 'b');
	//s1.insert(1, 'c');
	//s1.insert(1, 'd');
	//s1.insert(1, 'e');
	//s1.insert(1, 'f');

	s1.insert(1, "abcde");


	cout << s1 << endl;
}

int main()
{
	test4();
	

	return 0;
}